package com.zrc.superframe_net.room.net

import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize

/**
 * @Author: superman
 * @CreateTime: 10/15/21
 * @Describe:
 */
@Parcelize
@Entity(indices = [Index(value = ["url"], unique = true)])
class NetCache :Parcelable{
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo
    var id: Long=0

    @SerializedName("url")
    @ColumnInfo
    var url = ""

    @SerializedName("gson")
    @ColumnInfo
    var gson = ""

    @SerializedName("time")
    @ColumnInfo
    var time: Long = 0
}